Release 10.1A: OpenEdge Development:
Java Open Clients
Methods
The
ProDataObjectMetaDataclass provides the following methods.setFieldMetaData( )
Adds the specified field (column property) to the property list of the specified
ProDataObjecttype:
fieldNumberSpecifies a 1-based position for this column property that corresponds to the position of a mapped field in a Progress 4GL temp-table.
fieldNameSpecifies a name for the column property that is typically identical to a mapped field in the corresponding 4GL temp-table. The value cannot be
nulland must be unique among column properties in the specifiedProDataObjecttype.extentSpecifies if and how the column property represents an array field in the corresponding temp-table. The value must be 0 or greater. If the value is greater than 1, this column property is many-valued (represents an array field) and the value is its extent. If the property represents a
BLOBorCLOBfield, the value must be 0 or 1.proTypeSpecifies the value of a class constant defined in the
com.progress.open4gl.Parameterclass. The specified class constant indicates the 4GL data type of the mapped temp-table field. For more information on these class constants, see the information on specifying data type meta data for temp-tables in Chapter 4, " Passing Parameters." To identify the Java data type that the column property assumes for the specified 4GL data type, see Table 5–3.userOrderSpecifies a 0-based user order position for the column property.
xmlMappingReserved for future use. Always specify 0.
For more information on column properties, see the "Using Java SDO classes to access Property meta data" section.
getTableName( )
Returns the table name associated with this
ProDataObjectMetaDataobject:
getBImageFlag( )
Returns the
bimageFlagvalue defined for thisProDataObjectMetaDataobject (corresponding to theBEFORE-TABLEattribute of the corresponding Progress 4GL temp-table):
getUserOrder( )
Returns the user order position of the specified column property:
propertyIndexSpecifies a 0-based index into the
ProDataObjectproperty list, limited by the value of the getFieldCount( ) method. It returns a value that corresponds to the relative position specified byfieldNumberin the setFieldMetaData( ) method.getProType( )
Returns the Progress 4GL data type of the specified column property as a class constant value found in
com.progress.open4gl.Parameter:
propertyIndexSpecifies a 0-based index into the
ProDataObjectproperty list, limited by the value of the getFieldCount( ) method. It returns a value that corresponds to the relative position specified byfieldNumberin the setFieldMetaData( ) method.For more information on the class constant values provided by the
com.progress.open4gl.Parameterclass, see the information on specifying data type meta data for temp-tables in Chapter 4, " Passing Parameters."getExtent( )
Returns the extent value of the specified column property:
propertyIndexSpecifies a 0-based index into the
ProDataObjectproperty list, limited by the value of the getFieldCount( ) method. It returns a value that corresponds to the relative position specified byfieldNumberin the setFieldMetaData( ) method.If the column property does not represent an array field, the method always returns 0.
getFieldName( )
Returns the name of the specified column property:
propertyIndexSpecifies a 0-based index into the
ProDataObjectproperty list, limited by the value of the getFieldCount( ) method. It returns a value that corresponds to the relative position specified byfieldNumberin the setFieldMetaData( ) method.getFieldCount( )
Returns the number of column properties defined for the specified
ProDataObjecttype:
The value is identical to the setting of
numFieldsin the constructor that instantiates thisProDataObjectMetaData.setNoSchemaMarshal( )
Indicates, as a run-time only setting, whether schema information for the specified
ProDataObjectcollection is sent to the AppServer along with the data:
flagWhen set to
true, any application service method that passes aProDataGraphparameter containing thisProDataObjectMetaDatamarshals only the data to the AppServer from the specifiedProDataObjectcollection. This setting suppresses transmission of index descriptions and all field information, which helps to speed the transmission of data. You can change this setting at any point where you invoke application service methods.getNoSchemaMarshal( )
Returns
trueif the most recent invocation of the setNoSchemaMarshal( ) method indicated that the specifiedProDataObjectcollection is to be marshalled to the AppServer without schema information:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |